package com.weimei.conversionTreasure.http.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class YearBean extends BaseResult{
    @SerializedName("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("data")
        private String data;
        @SerializedName("SumAmount")
        private double sumAmount;
        @SerializedName("clist")
        private List<ClistDTO> clist;
        @SerializedName("mlist")
        private List<MlistDTO> mlist;

        public String getData() {
            return data;
        }

        public void setData(String data) {
            this.data = data;
        }

        public double getSumAmount() {
            return sumAmount;
        }

        public void setSumAmount(double sumAmount) {
            this.sumAmount = sumAmount;
        }

        public List<ClistDTO> getClist() {
            return clist;
        }

        public void setClist(List<ClistDTO> clist) {
            this.clist = clist;
        }

        public List<MlistDTO> getMlist() {
            return mlist;
        }

        public void setMlist(List<MlistDTO> mlist) {
            this.mlist = mlist;
        }

        public static class ClistDTO {
            @SerializedName("className")
            private String className;
            @SerializedName("Proportion")
            private String proportion;

            public String getClassName() {
                return className;
            }

            public void setClassName(String className) {
                this.className = className;
            }

            public String getProportion() {
                return proportion;
            }

            public void setProportion(String proportion) {
                this.proportion = proportion;
            }
        }

        public static class MlistDTO {
            @SerializedName("month")
            private String month;
            @SerializedName("price")
            private double price;
            @SerializedName("ratio")
            private String ratio;
            @SerializedName("SumNumber")
            private int sumNumber;

            public String getMonth() {
                return month;
            }

            public void setMonth(String month) {
                this.month = month;
            }

            public String getPrice() {
                return price +"";
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getRatio() {
                return ratio;
            }

            public void setRatio(String ratio) {
                this.ratio = ratio;
            }

            public String getSumNumber() {
                return sumNumber+"笔";
            }

            public void setSumNumber(int sumNumber) {
                this.sumNumber = sumNumber;
            }
        }
    }
}
